/*      
 * 模块编号  
 * 功能描述 
 * 文件名 PaymentFeignService.java 
 * 作者 王磊 
 * 编写日期 2022年01月16日 
 */
package wl.demo.springcloud.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import wl.demo.springcloud.entities.CommonResult;
import wl.demo.springcloud.entities.Payment;

@Component
@FeignClient(value = "CLOUD-PAYMENT-SERVICE")
public interface PaymentFeignService
{
    @GetMapping(value = "/payment/{id}")
    CommonResult<Payment> getPaymentById(@PathVariable("id") Long id);
    
    @GetMapping(value = "/payment/feign/timeout")
    String paymentFeignTimeOut();
}
